<?php

class Usuario extends Controller {

	public function __construct()
	{
		parent::__construct();
	}
	
	public function index()	{
    $this->prunuslib->setCurrentAction($this->config->item('PR_accion_MyUser_View'));
    $this->prunuslib->setCurrentMenuItem($this->config->item('PR_menuItem_MyUser'));
    $data['bienvenido']=lang('Bienvenido',$this->prunuslib->idioma);
    $data['logueado']=$this->prunuslib->is_logged_in();
    $data['userName']=$this->prunuslib->usuName;
    $data['menu']=$this->prunuslib->getMenuUL('menu','current');

    $extra = "<ul>";
    $extra .="<li><p>" . anchor('usuario/idioma',$this->prunuslib->getActionName($this->config->item('PR_accion_MyUser_ChangeIdioma'))) . "</p></li>";
    $extra .="<li><p>" . anchor('usuario/modificar',$this->prunuslib->getActionName($this->config->item('PR_accion_MyUser_ChangeInfo'))) . "</p></li>";
    $extra .="<li><p>" . anchor('usuario/password',$this->prunuslib->getActionName($this->config->item('PR_accion_MyUser_ChangePWD'))) . "</p></li>";
    $extra .="</ul>";
    $data['extra']=$extra;
		$this->load->view('home_index',$data);
	}
  
  public function modificar() {
    $this->prunuslib->setCurrentAction($this->config->item('PR_accion_MyUser_ChangeInfo'));
    $this->prunuslib->setCurrentMenuItem($this->config->item('PR_menuItem_MyUser'));
    $data['bienvenido']=lang('Bienvenido',$this->prunuslib->idioma);
    $data['logueado']=$this->prunuslib->is_logged_in();
    $data['userName']=$this->prunuslib->usuName;
    $data['menu']=$this->prunuslib->getMenuUL('menu','current');
		$this->load->view('home_index',$data);
  }
  
  public function password() {
    $this->prunuslib->setCurrentAction($this->config->item('PR_accion_MyUser_ChangePWD'));
    $this->prunuslib->setCurrentMenuItem($this->config->item('PR_menuItem_MyUser'));
    $data['bienvenido']=lang('Bienvenido',$this->prunuslib->idioma);
    $data['logueado']=$this->prunuslib->is_logged_in();
    $data['userName']=$this->prunuslib->usuName;
    $data['menu']=$this->prunuslib->getMenuUL('menu','current');
		$this->load->view('home_index',$data);
  }
  
  public function idioma() {
    $this->prunuslib->setCurrentAction($this->config->item('PR_accion_MyUser_ChangeIdioma'));
    $this->prunuslib->setCurrentMenuItem($this->config->item('PR_menuItem_MyUser'));
    $data['bienvenido']=lang('Bienvenido',$this->prunuslib->idioma);
    $data['logueado']=$this->prunuslib->is_logged_in();
    $data['userName']=$this->prunuslib->usuName;
    $data['menu']=$this->prunuslib->getMenuUL('menu','current');

    $extra = "<ul>";
    $extra .="<li><p>" . anchor('prunus/idioma/change/spanish/usuario',lang('pr_CambiaIdiomaSpanish')) . "</p></li>";
    $extra .="<li><p>" . anchor('prunus/idioma/change/english/usuario',lang('pr_CambiaIdiomaEnglish')) . "</p></li>";
    $extra .="</ul>";
    $data['extra']=$extra;
		$this->load->view('home_index',$data);
  }
  
}

/* End of file usuario.php */
/* Location: ./system/application/controllers/usuario.php */